﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageUsers.aspx.cs" Inherits="ORS.Web.ManageUsers" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        #form1
        {
            text-align: center;
        }
    </style>
    <script type="text/javascript">
        function hasChecked(objName, msg) 
        {
            var box = document.getElementsByName(objName);
            var t = 0;
            for (var j = 0; j < box.length; j++)
                { if (box[j].checked) t = t + 1; }
            if (t == 0)
                { window.alert(msg); return false; }
            else
                 return true;
        }
     
     </script>
</head>
<body style="height: 340px">
    <form id="form1" runat="server">
    <div align="center" style="width: 100%; height: 26px;">
    
        <table style="width:100%;">
            <tr>
                <td style="width: 25%">
                    <asp:Button ID="btn_Auditing" runat="server" Text="用户注册请求处理" 
                        onclick="btn_Auditing_Click" Width="119px" />
                </td>
                <td style="width: 25%">
                    <asp:Button ID="btn_Browse" runat="server" Text="已注册用户管理" 
                        onclick="btn_Browse_Click" />
                </td>
                <td style="width: 25%">
                    <asp:Button ID="btn_auditreg" runat="server" onclick="btn_auditreg_Click" 
                        Text="同意注册" 
                        onclientclick="return hasChecked('register_audit','请选择一条记录')" />
                </td>
                <td style="width: 25%">
                    <asp:Button ID="btn_Delete" runat="server" Text="删除用户" 
                        onclick="btn_Delete_Click" 
                        onclientclick="return hasChecked('register_audit','请选择一条记录')" />
                </td>
            </tr>
        </table>
    
    </div>
    <br />
    <asp:Label ID="lblaudit" runat="server" Font-Bold="True" Font-Size="Large" 
        ForeColor="Red" style="text-align: left"></asp:Label>
    <br />
&nbsp;<asp:GridView ID="GridView1" runat="server" EnableModelValidation="True" 
        HorizontalAlign="Center" 
        style="text-align: center; margin-left: 0px" Width="735px" 
        AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" 
        GridLines="None">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="userid" 
                
                DataFormatString="&lt;input type=&quot;checkbox&quot; name=&quot;register_audit&quot; value=&quot;{0}&quot;&gt;" 
                HtmlEncode="False" />
            <asp:BoundField DataField="cname" HeaderText="姓名" />
            <asp:BoundField DataField="Expr1" HeaderText="用户类型" />
            <asp:BoundField DataField="gender" HeaderText="性别" />
            <asp:BoundField DataField="regdate" HeaderText="注册日期" />
            <asp:BoundField DataField="phonenum" HeaderText="电话" />
            <asp:BoundField DataField="email" HeaderText="电子邮件" />
            <asp:BoundField DataField="name" HeaderText="研究领域" />
        </Columns>
        <EditRowStyle BackColor="#7C6F57" />
        <FooterStyle HorizontalAlign="Center" VerticalAlign="Middle" 
            BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#336699" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E3EAEB" />
        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
    </asp:GridView>
    </form>
</body>
</html>
